<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import bus from './bus'

export default {
  created() {
    this.refreshTimer = setInterval(() => {
      bus.$emit('refresh-all-data')
    }, 30000)
  },
  beforeDestroy() {
    clearInterval(this.refreshTimer)
  }
};
</script>

<style lang="scss" scoped>
#app {
  width: 100vw;
  height: 100vh;
  background-color: #020308;
  overflow: hidden;
}
</style>
